
CC:=gcc
CFLAGS := -g -O0 -Wall  # 添加调试信息并禁用优化

log:=../../thirdparty/log.c
common:=../../app/app_common.c

pthread_01:pthread_01.c $(log)
	$(CC) $(CFLAGS) -o $@ $^ -I../../thirdparty/
	./$@
	rm $@

sum_sqr_02:	sum_sqr_02.c $(log) $(common)
	$(CC) $(CFLAGS) -o $@ $^ -I../../thirdparty/ -I../../app/
	./sum_sqr_02
	rm $@

mutex_03:	mutex_03.c $(log) $(common)
	$(CC) $(CFLAGS) -o $@ $^ -I../../thirdparty/ -I../../app/
	./mutex_03
	rm $@

mqueue_04:	mqueue_04.c $(log)  
	$(CC) $(CFLAGS) -o $@ $^ -I../../thirdparty/  
	./mqueue_04
	rm $@
